package PL.practica7;

import java.io.IOException;

import org.antlr.runtime.ANTLRFileStream;
import org.antlr.runtime.CharStream;
import org.antlr.runtime.CommonTokenStream;
import org.antlr.runtime.RecognitionException;

public class Procesador {


	public static void main(String[] args) throws IOException, RecognitionException {
		CharStream cs = new ANTLRFileStream(args[0]);
		AnalizadorYACCLexer lex = new AnalizadorYACCLexer(cs);
		CommonTokenStream tokens = new CommonTokenStream(lex);
		AnalizadorYACCParser parser = new AnalizadorYACCParser(tokens);
		parser.yacc();	
		lex.MostrarPalabras();
		System.out.println ("done!!!!!!!");
	}

}
